package movee.bootstrap;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Service;

/**
 * 启动后需执行的任务
 *
 * @author movee
 */
@Service
@Slf4j
public class AppTaskOnStarted implements ApplicationRunner {

    public AppTaskOnStarted() {

    }

    @Override
    public void run(ApplicationArguments args) throws Exception {
        // do something
    }
}
